<h1>Lagerzusände</h1>
<div class="editFormContainer" id="editStock">
    <form action="./index.php?fnc=stock" method="post">

        <?php
        $length1 = 10;
        $length2 = 45;
        $length3 = 18;
        $length4 = 20;
        ?>

        <table class="stockList">
            <tbody>
            <tr>

                <td width="<?php echo $length2; ?>%" valign="top">
                    <div><strong>Von</strong></div>
                </td>
                <td width="<?php echo $length2; ?>%" valign="top">
                    <div><strong>Bis</strong></div>
                </td>

                <!--td width="<?php echo $length4; ?>%" valign="top">
                    <div><strong>Betrag(Euro)</strong></div>
                </td-->

                <td width="<?php echo $length2; ?>%" valign="top">
                    <div><strong>Abgerechnet</strong></div>
                </td>

            </tr>
            <?php
            $list = $this->getTplVar('list');
            if (is_array($list) && count($list) > 0){
                foreach ($list AS $stock){

                    $aim = '';
                    $linkStart = '<a href="./index.php?fnc=stock&stockId='.$stock['id'].'" >';
                    $linkEnd = '</a>';

                    echo '<tr>';
                    //check box <label for="'.$article['id'].'" class="selectBoxLabel">'.$article['name_de'].'</label></b>
                    echo '<td width="'.$length2.'%" valign="top"><div class="column">'.$linkStart.$stock['from'].$linkEnd.'</div></td>';


                    if ( $stock['settlement_time'] == '0000-00-00 00:00:00'){

                        $stock['settlement_time'] = 'Jetzt';
                    }
                    echo '<td width="'.$length2.'%" valign="top"><div class="column">'.$linkStart.$stock['settlement_time'].$linkEnd.'</div></td>';

                    //echo '<td width="'.$length4.'%" valign="top"><div class="column">'.$stock['total_price_e'].'</div></td>';

                    echo '<td width="'.$length2.'%" valign="top"><div class="column">'.$stock['status'].'</div></td>';

                    echo '</tr>';
                }
            }

            ?>
            </tbody>
        </table>

        <input type="submit" name="action" value="Abrechnen"/>

        <!---

        <table cellpadding="0" cellspacing="0" class="btm-blk"><tbody><tr><td width="25px;"><input type="checkbox" value="BulkCheckAction" name="BkCkBm" id="BkCkBm240"><label class="g-hdn" for="BkCkBm240">Alle markieren</label></td><td><div class="BottomBulk"><b id="v4-My_38_24" class="bn-w bn-m bn-pad trsb-S"><i>Notiz hinzufügen</i><span id="spn_v4-My_38_24" class="bn-b trsb-b trsb-S"><input id="but_v4-My_38_24" name="BulkAddNote" value="Notiz hinzufügen" title="" type="button"><b id="txt_v4-My_38_24">Notiz hinzufügen</b></span></b><b id="v4-My_38_25" class="bn-w bn-m bn-pad trsb-S"><i>Löschen</i><span id="spn_v4-My_38_25" class="bn-b trsb-b trsb-S"><input id="but_v4-My_38_25" name="SubmitAction.BulkDelete" value="Löschen" title="" type="button"><b id="txt_v4-My_38_25">Löschen</b></span></b><b id="v4-My_38_26" class="bn-w bn-m bn-pad trsb-S"><i>Vergleichen</i><span id="spn_v4-My_38_26" class="bn-b trsb-b trsb-S"><input id="but_v4-My_38_26" name="SubmitAction.BulkCompare" value="Vergleichen" title="" type="submit"><b id="txt_v4-My_38_26">Vergleichen</b></span></b><input type="hidden" name="coaction" value="compare"><b id="v4-My_38_27" class="bn-w bn-m bn-pad trsb-S"><i>Auf die Liste</i><span id="spn_v4-My_38_27" class="bn-b trsb-b trsb-S"><input id="but_v4-My_38_27" name="Artikel zu Liste(n) hinzufügen" value="Auf die Liste" title="" type="button"><b id="txt_v4-My_38_27">Auf die Liste</b></span></b></div></td></tr></tbody></table>

         --->
    </form>

</div>